How can I check each result on a function and then go to the other function

welcome to shbcf.ru